package main

import (
	"fmt"
	"minigame/config"
	"minigame/net"
	"minigame/server/login"
)

func main() {
	host := config.File.MustValue("login_server", "HOST", "127.0.0.1")
	port := config.File.MustValue("login_server", "PORT", "9527")
	fmt.Println(host, port)
	s := net.NewServer(host + ":" + port)
	login.Init()
	s.Router(login.Router)
	s.Start()
}
